package com.dz.lm.common.dto;

import com.dz.lm.common.util.StringUtil;
import com.dz.lm.domain.usermessage.UserMessage;

/**
 * @version 1.8;
 * @author: LDY;
 * @Description;
 * @Date: Created in 2020/6/30 15:30;
 */
public class UserMessageDTO extends UserMessage {
    //接收人
    private Object user;
    //发送人
    private Object sendUser;
    // 1是发送人
    private int flag;

    @Override
    public void setCreateTime(String createTime) {
        if(!StringUtil.containEmpty(createTime)){
            super.setCreateTime(createTime.substring(0,16));
        }
    }

    @Override
    public void setUpdateTime(String updateTime) {
        if(!StringUtil.containEmpty(updateTime)){
            super.setCreateTime(updateTime.substring(0,16));
        }
    }

    public Object getUser() {
        return user;
    }

    public void setUser(Object user) {
        this.user = user;
    }

    public Object getSendUser() {
        return sendUser;
    }

    public void setSendUser(Object sendUser) {
        this.sendUser = sendUser;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }
}
